<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>关于我们</title>
<link rel="stylesheet" type="text/css" href="../css/forms.css">
<?php 
//引入在线编辑器 
include("../FCKeditor/fckeditor.php") ; 
?> 
</head>
<?php include("../conn/conn.php");?>
<script language="javascript">
function chkinput(form){
	if(form.title.value==""){alert("请输入主题!");form.title.select();return(false);}
	//if(form.EditorDefault.value==""){alert("请输入饮食健康信息内容!");form.EditorDefault.select();return(false);}
	return(true);}
</script>
<body>
<div class="main">
<table>
  <tr>
    <td colspan="2"><div class="main-title">添加广告</div></td>
  </tr>
      <form name="form1" method="post" action="../save/savenewbanner.php" onSubmit="return chkinput(this)" enctype="multipart/form-data">
	  <tr>
        <td>主题</td>
        <td><div align="left"><input type="text" id="title" name="title" size="50" class="inputcss"></div></td>
      </tr>
	  <tr>
        <td>广告图</td>
        <td><div align="left"><input type="file" id="upfile" name="upfile" size="50" class="inputcss"></div></td>
      </tr>
      <tr>
        <td>内容</div></td>
        <td><div align="left">
			  <textarea name="EditorDefault" rows="8" cols="70"></textarea>

        </div></td>
      </tr>
      <tr>
        <td colspan="2">
        <input type="submit" value="添加" class="buttoncss">&nbsp;&nbsp;
        <input type="reset" value="重置" class="buttoncss">&nbsp;&nbsp;
        <input type="button" onClick="history.back();" value="返回" class="buttoncss">
        </td>
      </tr>
	  </form>
</table>
</div>
</body>
</html>
